<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
    public function up(): void
    {
        Schema::create('scenic_spot_goods_introduces', function (Blueprint $table) {
            $table->id();
            $table->string('scenic_id',32)->comment('景区id');
            $table->string('ticket_id',32)->comment('门票id');
            $table->text('introduce')->comment('门票说明');
            $table->timestamps();
            $table->index('scenic_id','idx_spot');
        });
    }

    public function down(): void
    {
        Schema::dropIfExists('scenic_spot_goods_introduces');
    }
};
